#include "thread.hpp"
#include <unistd.h>
using namespace jc;

int main()
{
    thread t([]()
    {
        while(true)
        {
            std::cout << "i am a new process, and i say : hello kivotos" << std::endl;
            sleep(1);
        } 
    });
    t.Start();
    sleep(5);
    //t.Deatch();
    t.Stop();
    sleep(1);
    t.Join();
    return 0;
}
